package com.king.designpatterns.hybriddesignpattern.hybriddesignpattern.observingtheintermediarypatterns;

import java.util.Vector;

/**
 * 抽象事件处理类
 *
 * @author king
 * @date 2021-06-15 13:44
 */
public abstract class EventCustomer {
    private Vector<ProductEventType> vector = new Vector<>();

    public EventCustomer(ProductEventType type) {
        vector.add(type);
    }

    public void addEventType(ProductEventType type){
        vector.add(type);
    }

    public Vector<ProductEventType> getCustomType(){
        return vector;
    }

    public abstract void exec(ProductEvent event);
}
